//
//  ImageScrollModel.swift
//  TrafficViolation
//
//  Created by eaglelive on 2017/4/7.
//  Copyright © 2017年 eaglelive. All rights reserved.
//

import UIKit
import SwiftyJSON
import Alamofire

class ImageScrollModel: NSObject {
    
    var pic_url : String //图片路径
    var title : String //图片标题
    var url : String //广告路径
    
    //初始化
    init(dic : JSON) {
        self.pic_url = "\(projectUrl)/file/download/\(dic["sourceFileID"].stringValue)?tokenID=\(tokenID!)&tokenUserID=\(userID!)"
        self.title = dic["sourceName"].stringValue
        self.url = dic["url"].stringValue
        //print("url：\(self.pic_url)  title：\(self.title)  time：\(getCurrentTime())");
    }
}
